package example.bill.com.jnilearn;

import java.io.Serializable;

public class EventInfo implements Serializable{

    public enum EventType{

        en_event_ok(0),
        en_event_failed(1);
        private int eventType;

        EventType(int eventType) {
            this.eventType = eventType;
        }

        public int getEventType() {
            return eventType;
        }
        public void setEventType(int eventType) {
            this.eventType = eventType;
        }
    }

    public EventType eventType;
    public int msgNo;
    public String msgInfo;

    public EventInfo(int msgNo,String msgInfo,EventType type) {
        this.msgNo = msgNo;
        this.msgInfo = msgInfo;
        this.eventType = type;
    }

    @Override
    public String toString(){
        return "[msgNo] " + msgNo + "[msgInfo ]" + msgInfo + "[eventType ]" + eventType;
    }
}
